﻿
    <!-- Logo -->
    <a class="logo">
      <span class="logo-mini"><b>欧冶金服</b><small>-管理中心</small></span>
      <span class="logo-lg"><b>欧冶金服</b><small>-管理中心</small></span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
      <!-- Navbar Right Menu -->
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">

          <!-- Tasks Menu -->
          <li class="dropdown tasks-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa  fa-warning (alias)"></i>
              <span class="label label-danger">1</span>
            </a>
          </li>
          <!-- User Account Menu -->
          <li class="dropdown user user-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <!-- The user image in the navbar-->
              <img src="../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
              <!-- hidden-xs hides the username on small devices so only the image appears. -->
              <span class="hidden-xs">您好，管理员 <span id="tname"></span></span>
            </a>
          </li>
          <!-- Control Sidebar Toggle Button -->
          <li>
            <a href="../login.html"><span class="">退出</span></a>
          </li>
        </ul>
      </div>
	  <script>
   function getCookie(objName){//获取指定名称的cookie的值   
	    var arrStr = document.cookie.split("; ");   
	    for (var i = 0; i < arrStr.length; i++) {   
	        var temp = arrStr[i].split("=");   
	        if (temp[0] == objName)   
	            return unescape(temp[1]);   
	    }   
	} 
  var tname = getCookie("tname"); 
  var password = getCookie("password"); 
     var postBody = {
            userId: tname
        };
    console.log(postBody.username + " " + postBody.password);
		               
  var a= getCookie("content");
  console.log(a);
  document.getElementById('tname').innerHTML=tname; 
    function delCookie(tname){//为了删除指定名称的cookie，可以将其过期时间设定为一个过去的时间   
    var date = new Date();   
    date.setTime(date.getTime() - 10000);   
    document.cookie = name + "=a; expires=" + date.toGMTString();   
  }  
</script>
    </nav>